package com.dyl.t03_function_interfase;

import java.util.function.Function;

public class FunctionX {
    public static void main(String[] args) {
        method(Integer::valueOf, "1");
    }

    public static void method(Function<String, Integer> function, String s) {
        System.out.println(function.apply(s));
    }
}
